<?php #//AJAX PHP PENNY AUCTION v.1.1

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
?>
<BR>
<table width="95%" border=0 cellpadding=4 cellspacing=1 align=center>
<TR>
<TD>
<FIELDSET><LEGEND>

<span class=PAGE_HEADER >&nbsp;<? print $MSG_AJAX_ADMIN_SELL_TIME_SELECT_CATEGORY; ?> &nbsp;</span>
</LEGEND>
    
           <FORM NAME=catform ACTION="<?=$_SERVER['PHP_SELF']?>#goto" METHOD="post">
          <INPUT TYPE=HIDDEN NAME="action" VALUE="process">
          <INPUT TYPE=HIDDEN NAME="box" VALUE="">
          <?
          if(is_array($DONTSUBMIT)) {
          	while(list($k,$v) = each($DONTSUBMIT)) {
          		print "<INPUT TYPE=hidden NAME=S".$k." VALUE=$v>";
          	}
          }
	  ?>
          
      <TABLE width="100%" BORDER="0" CELLPADDING="4" class="content">
        <TR> 
          <TD colspan="2" valign="top"> 
       
          </TD>
        </TR>
        <?
            if($ERR) {
			?>
        <TR> 
          <TD colspan="2" class=errfont>
            <?=$ERR?>
          </TD>
        </TR>
        <?
            }
            ?>
        <TR> 
          <?
              for ($i=0;$i<8;$i++) {
              	$catto="CATS".$i;
              	$cattnext="CATS".($i+1);
              	if(is_array($$catto)) {
					?>
          <TD align=center>
              <select name="cat<?=$i?>" class=box size=8 onClick=SubmitBoxes(<?=($i+1)?>,"cat<?=$i?>")>
                <?
					while(list($k,$v) = each($$catto)) {
					?>
                <OPTION VALUE=<?=$k?> <?if($_POST['cat'.$i] == $k) print " SELECTED";?>> 
                <?=$v?>
                <?
                    if($_POST['cat'.$i] == $k && is_array($$cattnext)) $_SESSION['CATSTRING'] .= str_replace("&nbsp;->","",$v)." > ";
					?>
                </OPTION>
                <?
			}
			if(count($$catto) < 8) {
				$k = count($$catto);
				while($k <= 8) {
					print "<OPTION VALUE=''></OPTION>";
					$k++;
				}
			}
			?>
              </select>
           </TD>
          <?
              	}
              	if ($i % 2==1) print "</TR><TR>";
              }
			  ?>
        <TR> 
          <TD colspan="2">&nbsp;</TD>
        </TR>
        <TR> 
          <TD align=center colspan="2" >
	  <? if($SHOWBUTTON){?>
	  <INPUT TYPE=submit NAME="submitit" VALUE="<?=$MGS_2__0047?>" class=button />
	  <?}?>
          </TD>
        </TR>
      </TABLE>
        </FORM>
      </CENTER>
 </FIELDSET>
    </td>
    </tr>
    </table>